<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north'" class="center">
        <div class="webmap">
            <p class="webmaptip">当前位置:</p>
            <a href="javascript:;" class="easyui-link" data-options="plain:true">投诉建议</a>
            <p class="webmaptip">></p>
            <a href="javascript:;" class="easyui-link" data-options="plain:true">投诉建议管理</a>
        </div>
        <div class="querybycon">
            <form id="query">
                <div class="queryinfo">
                    <div>用户ID<input type="text" name="userId"/></div>
                    <div>类型<input class="easyui-combobox" name="type"
                                  data-options="url:'/dictionary/suggestionType?all=true'"/></div>
                    <div>创建时间<input name="startDate" class="easyui-datetimebox"></div>
                    -
                    <div><input name="endDate" class="easyui-datetimebox"></div>
                    <div class="query">
                        <a id="querybtn" href="javascript:;" class="easyui-linkbutton"
                           data-options="iconCls:'fa fa-search'"></a>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div data-options="region:'center'" class="center">
        <table id="list"></table>
    </div>
</div>


<script type="text/javascript">
    var listUrl = "/suggestion/list";
    var columns = [[{
        field: 'id',
        checkbox: true
    }, {
        field: 'userId',
        title: '用户ID',
        width: "125px",
    }, {
        field: 'type',
        title: '类型',
        width: "125px",
        formatter: function (value, row, index) {
            if (value != null) {
                if (value == '1') {
                    return '建议';
                } else if (value == '2') {
                    return '投诉';
                }
            }
        }
    }, {
        field: 'content',
        title: '反馈内容',
        width: "300px",
    }, {
        field: 'contactWay',
        title: '联系方式',
        width: "125px",
    }, /*{
     field: 'picture',
     title: '图片',
     width: "125px",
     },*/ {
        field: 'createdDate',
        title: '创建时间',
        width: "125px",
    }]];
    list.init({url: listUrl, columns: columns});
</script>
